package com.devplatform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.devplatform.mapper.AdvertisersMapper;
import com.devplatform.pojo.Advertisers;
import com.devplatform.pojo.dto.AdsDetailDto;
import com.devplatform.pojo.dto.DetailedAdvertisers;
import com.devplatform.service.AdvertisersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 19166
 * @description 针对表【advertisers(广告主表)】的数据库操作Service实现
 * @createDate 2025-09-27 19:44:48
 */
@Service
public class AdvertisersServiceImpl extends ServiceImpl<AdvertisersMapper, Advertisers>
        implements AdvertisersService {

    @Autowired
    private AdvertisersMapper advertisersMapper;

    @Override
    public List<DetailedAdvertisers> getAllAdvertisers(IPage<DetailedAdvertisers> page, QueryWrapper<DetailedAdvertisers> queryWrapper) {
        return advertisersMapper.selectAllAdvertisers(page, queryWrapper);
    }
}




